<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>EasyWasmPlayer</title>
    <script src="./EasyWasmPlayer.js"></script>
  </head>

  <body>
    <div style="width: 100%; height: 500px; background-color: pink; margin: auto">
      <div id="newplay"></div>
    </div>
    <script>
      // 播放器回调函数
      callbackfun = function (e) {
        console.log(e)
      }
      // 播放按钮
      var btn = document.getElementById('btn')
      // 地址栏
      var value = document.getElementById('value')
      // 实例播放器
      var player = new WasmPlayer(null, 'newplay', callbackfun, {
        Height: true,
      })
      player.play(location.href.split('=')[1], 1)
    </script>
  </body>
</html>
